package com.xl.flinkdemo.beans;

/**
 * @Describtion 传感器温度读数的数据类型
 * @Author hxl
 * @Date 2021/4/14 15:09
 * Version 1.0
 **/
public class SensorReding {

  //id，时间戳，温度值
  private String id;
  private Long timestamp;
  private Double temperature;

  public SensorReding(String id, Long timestamp, Double temperature) {
    this.id = id;
    this.timestamp = timestamp;
    this.temperature = temperature;
  }

  @Override
  public String toString() {
    return "SensorReding{" +
        "id='" + id + '\'' +
        ", timestamp=" + timestamp +
        ", temperature=" + temperature +
        '}';
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public Long getTimestamp() {
    return timestamp;
  }

  public void setTimestamp(Long timestamp) {
    this.timestamp = timestamp;
  }

  public Double getTemperature() {
    return temperature;
  }

  public void setTemperature(Double temperature) {
    this.temperature = temperature;
  }
}
